package dyyx;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import dyyx.data.Data;

@FeignClient(name = "provider")
public interface FeginHello {

	@RequestMapping(value="/fegin/hello")
    Data hello(Data data);
	
	@RequestMapping(value="/fegin/hello2",headers = {"header1=value1", "header2=value2"})
	String hello2(@RequestParam("name")  String name) throws Exception;
	
	@PostMapping(value="/fegin/hello2")
	String hello3(@RequestParam("name")  String name) throws Exception;

}
